import request from '@/utils/request'

// 易耗品登记分页
export function getList(params) {
  return request({
    url: '/consumables/list',
    method: 'POST',
    params
  })
}

// 易耗品登记添加
export function addConsumables(data) {
  return request({
    url: '/consumables/add',
    method: 'POST',
    data
  })
}

// 易耗品登记查询
export function selectConsumables(params) {
  return request({
    url: '/consumables/load',
    method: 'POST',
    params
  })
}

// 易耗品登记删除
export function deleteConsumables(data) {
  return request({
    url: '/consumables/delete',
    method: 'post',
    data
  })
}

// 易耗品登记修改
export function updateConsumables(data) {
  return request({
    url: '/consumables/update',
    method: 'post',
    data
  })
}

// 模糊查询团队下拉信息
export function selectTeam(params) {
  return request({
    url: '/administrative/teams/getTeamIdAndNameListByName',
    method: 'post',
    params
  })
}

